/*
* $Id: AnagramApp.java 69 2012-12-11 11:54:51Z Denis.Skalsky@gmail.com $
*/
package com.globallogic.skalskyy.javabasic.anagram;

import com.globallogic.skalskyy.javabasic.inputdata.Messages;

/**
* Anagram is a main program.
* @author $Author: denis.skalsky@gmail.com $
* @version $Revision: 40 $
*/
public class AnagramApp {
	
	public static void main(String[] args) {		
		Word word = new Word();
		word.setConsoleReader();
		String[] inputtedData = word.getInputtedWords();
		if (Word.isAnAnagram(inputtedData[0], inputtedData[1])) {
			System.out.format(
					Messages.ANAGRAM_TRUE_RESULT, inputtedData[0], inputtedData[1]);
		} else {
			System.out.format(
					Messages.ANAGRAM_FALSE_RESULT, inputtedData[0], inputtedData[1]);			
		};		
	}		
}